spb/company-atlas
Public
Python 66.3%
TypeScript 22.7%
JavaScript 8.6%
HTML 1.4%
CSS 0.7%
1import { api, safe } from '@/lib/api';2import { OG_CONTENT_TYPE, OG_SIZE, renderCompanyOg, renderSiteOg } from '@/lib/og';3import { SITE_NAME } from '@/lib/site';45/** Per-company share image: logo (fetched server-side, monogram fallback), name, domain · country · industry, key facts, metric tiles. */6export const alt = `Company profile on ${SITE_NAME}`;7export const size = OG_SIZE;8export const contentType = OG_CONTENT_TYPE;910export default async function CompanyOpenGraphImage({ params }: { params: Promise<{ slug: string }> }) {11 const { slug } = await params;12 const c = await safe(api.company(slug));13 if (!c) return renderSiteOg(await safe(api.stats()));14 return renderCompanyOg(c);15}16